home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / X11 / config / xf86.rules < prev    next >
Text File  |  2006-04-12  |  6KB  |  230 lines

  1. XCOMM $Xorg: xf86.rules,v 1.3 2000/08/17 19:41:48 cpqbld Exp $
  2.  
  3.  
  4.  
  5.  
  6. XCOMM $XFree86: xc/config/cf/xf86.rules,v 3.34tsi Exp $
  7.  
  8. /*
  9.  * Rules needed to build the XFree86 X Servers
  10.  */
  11.  
  12. #ifndef ObjectMapIncludeFromSpecialSource
  13. #define ObjectMapIncludeFromSpecialSource(dst,src,flags)        @@\
  14. dst.c:    src.c                                @@\
  15.     RemoveFile($@)                            @@\
  16.     echo "#include \"mfbmap.h\"" > $@                @@\
  17.     echo "#include \"$?\"" >> $@                    @@\
  18.                                     @@\
  19. SpecialCObjectRule(dst,NullParameter,flags)                @@\
  20.                                     @@\
  21. depend::    dst.c                            @@\
  22.                                     @@\
  23. clean::                                    @@\
  24.     RemoveFile(dst.c)
  25. #endif
  26.  
  27.  
  28. /*
  29.  * Rules for building config files from scripts
  30.  */
  31.  
  32. #ifndef Depend
  33. # define Depend depend
  34. #endif
  35.  
  36. #ifndef ConfigTargetLong
  37. #define ConfigTargetLong(target,dep,script,args,extra)            @@\
  38. all:: Configure                                @@\
  39.                                     @@\
  40. Configure:: target.o                            @@\
  41.                                     @@\
  42. target.c: script dep                            @@\
  43.     $(MAKE) $(MFLAGS) Makefile                    @@\
  44.     $(MAKE) $(MFLAGS) extra Concat(Build,target)            @@\
  45.                                     @@\
  46. Concat(Build,target):                            @@\
  47.     $(RM) target.c                            @@\
  48.     $(SHELL) script args                        @@\
  49.                                     @@\
  50. clean::                                    @@\
  51.     $(RM) target.c
  52. #endif
  53.  
  54. #define ConfigTarget(target,dep,script,args) ConfigTargetLong(target,dep,script,args,Depend)
  55.  
  56. #define ConfigTargetNoDepend(target,dep,script,args) ConfigTargetLong(target,dep,script,args,)
  57.  
  58. #ifndef DriverObjectList
  59. #define DriverObjectList(drivers,list)                    @@\
  60. list: $(ICONFIGFILES) drivers                        @@\
  61.     RemoveFile(list)                        @@\
  62.     @echo Creating list for drivers; \                @@\
  63.     DRIVERS="drivers"; \                        @@\
  64.     if [ x"$$DRIVERS" != x ]; then \                @@\
  65.       for i in $$DRIVERS; do \                    @@\
  66.         DRIVER="$$i/*_drv.o"; \                    @@\
  67.         for j in $$DRIVER; do \                    @@\
  68.           echo $$j >> list; \                    @@\
  69.         done; \                            @@\
  70.       done; \                            @@\
  71.     else \                                @@\
  72.       echo "" > list; \                        @@\
  73.     fi                                @@\
  74.                                     @@\
  75. clean::                                    @@\
  76.     RemoveFile(list)
  77. #endif
  78.  
  79. /*
  80.  * Rules for installing Driver SDK parts (target is install.sdk)
  81.  */
  82.  
  83. #ifndef InstallDriverSDKNonExecFile
  84. #if !DoLoadableServer
  85. #define InstallDriverSDKNonExecFile(file,dest)                /**/
  86. #else
  87. #define InstallDriverSDKNonExecFile(file,dest)                @@\
  88. install.sdk:: file                            @@\
  89.     MakeDir($(DESTDIR)dest)                        @@\
  90.     $(INSTALL) -c $(INSTDATFLAGS) file $(DESTDIR)dest
  91. #endif
  92. #endif
  93.  
  94. #ifndef InstallDriverSDKLibrary
  95. #if !DoLoadableServer
  96. #define InstallDriverSDKLibrary(libname,dest)                /**/
  97. #else
  98. #define InstallDriverSDKLibrary(libname,dest)                @@\
  99. install.sdk:: Concat(lib,libname.a)                    @@\
  100.     MakeDir($(DESTDIR)dest)                        @@\
  101.     $(INSTALL) -c $(INSTLIBFLAGS) Concat(lib,libname.a) $(DESTDIR)dest @@\
  102.     RanLibrary($(RANLIBINSTFLAGS) Concat($(DESTDIR)dest/lib,libname.a))
  103. #endif
  104. #endif
  105.  
  106. #ifndef InstallDriverSDKNamedLibrary
  107. #if !DoLoadableServer
  108. #define InstallDriverSDKNamedLibrary(libname,dlibname,dest)        /**/
  109. #else
  110. #define InstallDriverSDKNamedLibrary(libname,dlibname,dest)        @@\
  111. install.sdk:: Concat(lib,libname.a)                    @@\
  112.     MakeDir($(DESTDIR)dest)                        @@\
  113.     $(INSTALL) -c $(INSTLIBFLAGS) Concat(lib,libname.a) \        @@\
  114.       Concat($(DESTDIR)dest/lib,dlibname.a)                @@\
  115.     RanLibrary($(RANLIBINSTFLAGS) Concat($(DESTDIR)dest/lib,dlibname.a))
  116. #endif
  117. #endif
  118.  
  119. #ifndef InstallDriverSDKNamedNonExec
  120. #if !DoLoadableServer
  121. #define InstallDriverSDKNamedNonExec(srcname,dstname,dest)        /**/
  122. #else
  123. #define InstallDriverSDKNamedNonExec(srcname,dstname,dest)        @@\
  124. install.sdk:: srcname                            @@\
  125.     MakeDir($(DESTDIR)dest)                        @@\
  126.     $(INSTALL) -c $(INSTDATFLAGS) srcname $(DESTDIR)dest/dstname
  127. #endif
  128. #endif
  129.  
  130. #ifndef InstallDriverSDKNamedProg
  131. #if !DoLoadableServer
  132. #define InstallDriverSDKNamedProg(srcname,dstname,dest)            /**/
  133. #else
  134. #define InstallDriverSDKNamedProg(srcname,dstname,dest)            @@\
  135. install.sdk:: srcname                            @@\
  136.     MakeDir($(DESTDIR)dest)                        @@\
  137.     $(INSTALL) -c $(INSTBINFLAGS) srcname $(DESTDIR)dest/dstname
  138. #endif
  139. #endif
  140.  
  141. #ifndef InstallDriverSDKSubdirs
  142. #if !DoLoadableServer
  143. #define InstallDriverSDKSubdirs(dirs)                    /**/
  144. #else
  145. #define InstallDriverSDKSubdirs(dirs) \
  146. NamedTargetSubdirs(install.sdk,dirs,"installing driver SDK",DESTDIR='$(DESTDIR)',install.sdk)
  147. #endif
  148. #endif
  149.  
  150. #ifndef InstallDriverSDKMultipleDestFlags
  151. #if !DoLoadableServer
  152. #define InstallDriverSDKMultipleDestFlags(list,dest,flags)        /**/
  153. #else
  154. #define InstallDriverSDKMultipleDestFlags(list,dest,flags) \
  155. InstallMultipleDestFlags(install.sdk,list,dest,flags)
  156. #endif
  157. #endif
  158.  
  159. #ifndef InstallDriverSDKDynamicModule
  160. #if !DoLoadableServer
  161. #define InstallDriverSDKDynamicModule(module,dest,subdir)        /**/
  162. #else
  163. #define InstallDriverSDKDynamicModule(module,dest,subdir)        @@\
  164. install.sdk:: module                            @@\
  165.     MakeDir($(DESTDIR)dest/subdir)                    @@\
  166.     $(INSTALL) -c module $(DESTDIR)dest/subdir
  167. #endif
  168. #endif
  169.  
  170. #ifndef InstallDriverSDKObjectModule
  171. #if !DoLoadableServer
  172. #define InstallDriverSDKObjectModule(module,dest,subdir)        /**/
  173. #else
  174. #if MakeDllModules
  175. #define InstallDriverSDKObjectModule(module,dest,subdir)        @@\
  176. InstallDriverSDKDynamicModule(Concat(module,_drv.so),dest,subdir)
  177. #else
  178. #define InstallDriverSDKObjectModule(module,dest,subdir)        @@\
  179. InstallDriverSDKDynamicModule(Concat(module,_drv.o),dest,subdir)
  180. #endif
  181. #endif
  182. #endif
  183.  
  184.  
  185. #ifndef InstallDriverSDKObjectSubModule
  186. #if !DoLoadableServer
  187. #define InstallDriverSDKObjectSubModule(module,dest,subdir)        /**/
  188. #else
  189. #if MakeDllModules
  190. #define InstallDriverSDKObjectSubModule(module,dest,subdir)        @@\
  191. InstallDriverSDKDynamicModule(Concat(module,.so),dest,subdir)
  192. #else
  193. #define InstallDriverSDKObjectSubModule(module,dest,subdir)        @@\
  194. InstallDriverSDKDynamicModule(Concat(module,.o),dest,subdir)
  195. #endif
  196. #endif
  197. #endif
  198.  
  199. #ifndef InstallDriverSDKLibraryModule
  200. #if !DoLoadableServer
  201. #define InstallDriverSDKLibraryModule(module,dest,subdir)        /**/
  202. #else
  203. #if MakeDllModules
  204. #define InstallDriverSDKLibraryModule(module,dest,subdir)        @@\
  205. InstallDriverSDKDynamicModule(Concat3(lib,module,.so),dest,subdir)
  206. #else
  207. #define InstallDriverSDKLibraryModule(module,dest,subdir)        @@\
  208. InstallDriverSDKDynamicModule(ModuleLibraryTargetName(module),dest,subdir)
  209. #endif
  210. #endif
  211. #endif
  212.  
  213. #ifndef ServerDriverSDKTarget
  214. #if !DoLoadableServer
  215. #define ServerDriverSDKTarget(program)                    /**/
  216. #else
  217. #define ServerDriverSDKTarget(program)                    @@\
  218. InstallDriverSDKProgramWithFlags(program,$(DRIVERSDKDIR),$(_NOOP_))
  219. #endif
  220. #endif
  221.  
  222. #ifndef InstallDriverSDKProgramWithFlags
  223. #if !DoLoadableServer
  224. #define InstallDriverSDKProgramWithFlags(program,dest,flags)        /**/
  225. #else
  226. #define InstallDriverSDKProgramWithFlags(program,dest,flags)        @@\
  227. InstallTarget(install.sdk,ProgramTargetName(program),$(INSTPGMFLAGS) flags,dest)
  228. #endif
  229. #endif
  230.